// 重定向名称
export const REDIRECT_NAME = 'Redirect';

// 父布局名称
export const PARENT_LAYOUT_NAME = 'ParentLayout';

// 异常组件
// export const EXCEPTION_COMPONENT = () => import('/@/views/sys/exception/Exception.vue');

/**
 * @description: 默认布局
 */
export const LAYOUT = () => import('@/layouts/default/index.vue');

/**
 * @description: 父布局
 */
export const getParentLayout = (_name?: string) => {
  return () =>
    new Promise(resolve => {
      resolve({ name: PARENT_LAYOUT_NAME });
    });
};
